package com.tuanzi.loan.business.repository.galaxycard;

import com.tuanzi.loan.vo.request.galaxycard.GalaxyCardPrivilegeSearchRequest;
import com.tuanzi.loan.vo.response.galaxycard.GalaxyCardPrivilegeSearchResponse;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Map;


/**
 * 权益管理 JOOQRepositoryInterface
 * @author JinRuiyang 2018/2/8 16:27:57
 */
public interface GalaxyCardPrivilegeRepository {

    /**
     * GalaxyCardPrivilege查询
     * @param searchRequest 请求信息
     * @param pageable 分页信息
     * @return 响应列表
     */
    Page<GalaxyCardPrivilegeSearchResponse> list(GalaxyCardPrivilegeSearchRequest searchRequest, Pageable pageable);

    Map<String, Long> getCardType();

    Integer countPrivilegeByType(Integer type);
}